#
# your app can check this and change it's behavior when running in "internal" or "debug" mode.
#
DEBUG = False

#
# dictionary of database id's (used by db.getConnection) and mysql connect strings.
# should always have at a db id of "default" at a minimum
#
DATABASES = {"default": "mysql://user:password@db-hostname/db_name?charset=utf8"}

#
# max number of concurrent db connections that will ever be outstanding at once
#
DATABASE_POOL_SIZE = 10

#
# whether you want to profile the statements being executed by the db wrapper
#
DATABASE_PROFILE = False

#
# cookie name for session state
#
SESSION_COOKIE_NAME = "session"

#
# how long a session will live before expiring
#
SESSION_COOKIE_AGE = (60*60*24*30*6)   # 6 months

#
# host or domain name to set the session cookie for. Leave blank
# for the session cookie to be sent for the current hostname.
#
#SESSION_COOKIE_DOMAIN = "example.com"

#
# used to sign the session data and other places in the code that need
# a secret value
#
SECRET_KEY = '' you must set this

#
# List of middleware to run before and after each request. Run ino order
# listed for requests and in reverse order for responses. 
#

import yaaps.db
import yaaps.session

MIDDLEWARE = [
    yaaps.db.middleware,
    yaaps.session.middleware
    ]

#
# your app
#
import demo
